cboj-loans-prc-api
LOS Get Floating Rates
Description: This API is used to get the floating rates based on currency.
The experience API (loans-api) will check the ‘x-bank-id’. If ‘x-bank-id’ is ‘CBOJ’ in the region, the requests are accepted and sent to cboj-loans-prc-api which sends OFS requests to cboj-temenos-sys-api. If ‘x-bank-id’ is ‘NBI’ in the NBI region, the requests are accepted and sent to nbi-loans-prc-api which sends HTTP requests to nbi-temenos-sys-api to get the eligible loan products.
Mulesoft Request:
Headers:
Mandatory Headers: x-channel-id,x-correlation-id, x-bank-id,client_id, Authorization
Optional Headers: x-sub-channel-id,x-user-id, client_secret,x-debug-flag,x-debug-flag, x-customer-id
Uri Parameters:
Mulesoft will get below input from the channel in Uri Parameters.
FieldName | DataType | Required? | Length | sample |
---|---|---|---|---|
currency | string | Yes | Max 10 | AA1234567 |
Content-type: application/json
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاØ",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"floatingRates": [
{
"id": "1",
"description": "Red Comm Ls Flo",
"basicIntId": "1JOD20121216",
"intRate": "11.75",
},
{
"id": "20",
"description": "Refinance Rate",
"basicIntId": "20JOD20091101",
"intRate": "10.25",
}
]
}
}
Sample Error Response:
400 :
{
"status":
{
"success": false,
"code": "400",
"reasonCode": "BadRequest",
"arabicMessage": "لم يتم العثور على سجلات تطابق Ù…Øددات البØØ«",
"englishMessage": "No records were found that matched the selection criteria",
"backendError": "No records were found that matched the selection criteria",
"backendCode": "T24003790"
}
}